package com.zxl.feign;

import com.zxl.vo.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @packageName com.zxl.feign
 * @ClassName
 * @Author zxl
 * @Description //TODO
 * @date
 **/
@FeignClient(value = "order",path = "/order")
public interface OrderFeign {

    @RequestMapping("/getByOid/{oid}")
    Order getByOid(@PathVariable("oid") String oid);


    @RequestMapping("/updateOrderStatus")
    void updateOrder(@RequestParam("oid") String oid,@RequestParam("status") int status);
}
